package com.cys.dm.vo.dmes;

import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.DateFormat;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.util.Date;

public class DmItemEs {
    @Id
    private Long id;

    @Field(value = "itemname",
            type = FieldType.Text,
            analyzer = "ik_max_word")
    private String itemname;

    @Field(value = "itemtype1name",type = FieldType.Keyword)
    private String itemtype1name;

    @Field(value = "starttime",type = FieldType.Date,format = DateFormat.date_optional_time)
    private Date starttime;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getItemname() {
        return itemname;
    }

    public void setItemname(String itemname) {
        this.itemname = itemname;
    }

    public String getItemtype1name() {
        return itemtype1name;
    }

    public void setItemtype1name(String itemtype1name) {
        this.itemtype1name = itemtype1name;
    }

    public Date getStarttime() {
        return starttime;
    }

    public void setStarttime(Date starttime) {
        this.starttime = starttime;
    }
}
